package com.ltg.urban.domain.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ltg.urban.domain.project.entity.UrbanProject;
import com.ltg.urban.domain.project.entity.UrbanProjectUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p> ClassName: UrbanProjectUserMapper </p>
 * <p> Package: com.ltg.urban.domain.project.mapper </p>
 * <p> Description: </p>
 * <p></p>
 *
 * @Author: LTG
 * @Create: 2023/2/26 - 15:38
 * @Version: v1.0
 */

@Mapper
public interface UrbanProjectUserMapper extends BaseMapper<UrbanProjectUser> {
    UrbanProjectUser selectByProjectAndUserId(@Param("projectId") Long projectId, @Param("userId") Long userId);

    List<UrbanProjectUser> selectByProjectId(@Param("projectId")Long projectId);


    void deleteUser(@Param("projectId") Long projectId,@Param("userId") Long userId);
}
